export default {
  url: "/do/select/field",
  conditionLimit:null,
  selectable: false,
  showIndex: false,
  compact: 220,
  path: 'system/field',
  title: "表单字段配置",
  entitys: [{"name":"id","label":"编号","type":"search"},{"name":"creator","label":"创建人","type":"user"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"},{"name":"title","label":"字段名称"},{"name":"fieldType","label":"控件类型","code":"fieldType"},{"name":"required","label":"是否必填","type":"switch"},{"name":"options","label":"输入选项","type":"inputTag"},{"name":"rules","label":"验证规则"},{"name":"companyId","label":"所属公司","type":"search","depend":"company"}],
  columns: ["title","fieldType","required"],
  condition: [],
  slots: {
      header$() {
      return (
        <>
        <z-action p='4v2pmwo9' label='添加字段' mode='dialog' fields={["title","fieldType","required","options"]} type='primary' url='/do/put/field' />
        </>
      )
    },
    action$({ row }) {
      return (
        <>
          <z-action p='ohbun5tm' label='编辑' mode='dialog' fields={["title","required","options"]} link data={row} url='/do/patch/field' />
<z-action p='zctnkfkj' label='删除' mode='confirm' link data={row} url='/do/delete/field' />
        </>
      )
    }
  }
}
  